package com.fare.taluo.vo.core;


import org.codehaus.jackson.annotate.JsonAutoDetect;
import org.codehaus.jackson.annotate.JsonAutoDetect.Visibility;

import com.fare.taluo.vo.core.PlaneInfo;

@JsonAutoDetect(fieldVisibility=Visibility.ANY)
public class LowestPriceCompareVo extends AnalyseBaseVo{
	
	
	
	//南航最低价
	public String czPrice = "";
	
	//代理商最低价
	public String agentPrice = "";
	
	//价格比例
	public String pricescale = "";
	
	//代理商名称
	public String agentName = "";
	
	/**起飞时间*/
	public String flightBatchStartTime = "";
	
	
	public LowestPriceCompareVo(PlaneInfo firstInfo,PlaneInfo secondInfo,String finalDiscount){
		if(firstInfo != null){
			line = firstInfo.getFromCity() + "-" + firstInfo.getToCity();
			date = firstInfo.getFlightBatchDate();
			flightBatchStartTime = firstInfo.getFlightBatchStartTime();
			flightNo = firstInfo.getFlightId();
			czPrice = firstInfo.getLowprPrice();
		}else{
			line = secondInfo.getFromCity() + "-" + secondInfo.getToCity();
			date = secondInfo.getFlightBatchDate();
			flightBatchStartTime = secondInfo.getFlightBatchStartTime();
			flightNo = secondInfo.getFlightId();
		}
		if(secondInfo!=null){
			siteName = secondInfo.getGrabChannel();
			agentName = secondInfo.getAgentName();
			agentPrice = secondInfo.getLowprPrice();
		}
		pricescale = finalDiscount;
		
	}


	public String getCzPrice() {
		return czPrice;
	}


	public void setCzPrice(String czPrice) {
		this.czPrice = czPrice;
	}


	public String getAgentPrice() {
		return agentPrice;
	}


	public void setAgentPrice(String agentPrice) {
		this.agentPrice = agentPrice;
	}


	public String getPricescale() {
		return pricescale;
	}


	public void setPricescale(String pricescale) {
		this.pricescale = pricescale;
	}


	public String getAgentName() {
		return agentName;
	}


	public void setAgentName(String agentName) {
		this.agentName = agentName;
	}


	public String getFlightBatchStartTime() {
		return flightBatchStartTime;
	}


	public void setFlightBatchStartTime(String flightBatchStartTime) {
		this.flightBatchStartTime = flightBatchStartTime;
	}
	
}
